<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
    function jumpPage(pages) {
        $("#pages").val(pages);
        document.getElementById("pageForm").action="/familyeducation${url}";
        document.getElementById("pageForm").method="post";
        document.getElementById("pageForm").submit();
    }
</script>
    <form target="_self" id="pageForm" method="post">
        <input type="hidden" id="pages" name="pages">
        <c:if test="${teacher.tea_name!=null and teacher.tea_name!=''}">
            <input type="hidden"  name="tea_name" value="${teacher.tea_name }">
        </c:if>
        <div id="page" class="Buttons">
        	<h3 class="b3">
        		<span onclick="jumpPage(1)" class="label label-info">首页</span>
        		<span onclick="jumpPage(${(pages-1<1)?1:(pages-1)})" class="label label-info">上一页</span>
        		<span onclick="jumpPage(${(pages+1>sumPage)?sumPage:(pages+1)})" class="label label-info">下一页</span>
        		<span onclick="jumpPage(${sumPage})" class="label label-info">末页</span>
	        </h3>
        </div>
    </form>
